import axios from "../utils/reasonragRequest";
export const uploadFiles = (data) => {
    return axios.noTimeOutAxios({
        url: '/api/rag-uploadfile',
        method: 'post',
        data:data
    })
}


/**
 * 提交问题获取答案
 * @param {*} uestion 
 * @param {*} uuid 
 * @returns 
 */
export const submitQuestion= (formData) => {
    return axios.noTimeOutAxios({
        url: '/api/fastrag/answer',
        method: 'post',
        // 传FormData
        data:formData
    })
}
